<template>
  <div class="card-container">
    <!-- 进度 -->
    <!-- <div class="progressBar">
      <div class="start"></div>
      <div class="line-progressBar">
        <div class="line-item">
          <div class="current-num">30%</div>
        </div>
      </div>
      <div class="end"></div>
      <div class="progressBar-num">
        <span>0%</span>
        <span>100%</span>
      </div>
      <div class="tips">请填写基本资料信息！</div>
      <div class="center-btn">
        <el-button round type="primary" size="medium">保存至草稿箱</el-button>
      </div>
    </div> -->

    <!-- 填写身份信息 -->
    <div class="user-info-box">
      <div class="user-info">
        <i class="el-icon-user"></i>
        <span>基本资料</span>
      </div>

      <div class="user-info-item" style="border-bottom: none;">
        <div class="item-title"><span>*</span> 生效日期</div>
        <div class="user-input">
          <div class="select-box">
            <input class="dateInput" type="date" value="2021-06-16" />
            <!-- <select>
              <option>2020年06月15日</option>
              <option>2020年06月16日</option>
            </select> -->
            <span class="triangle"></span>
          </div>
          <div class="input-tips">请选择生效日期</div>
        </div>
      </div>

      <div class="user-info-item" style="border-bottom: none;">
        <div class="item-title"><span>*</span> 身份证有效期</div>
        <div class="user-input">
          <div class="select-box">
            <select>
              <option>非长期有效</option>
            </select>
            <span class="triangle"></span>
          </div>
          <div class="input-tips">请选择身份证有效期</div>
        </div>
      </div>
      <div class="user-info-item" style="border-bottom: none;">
        <div class="item-title"><span>*</span> 到期日期</div>
        <div class="user-input">
          <div class="select-box">
            <select>
              <option>2022年06月15日</option>
            </select>
            <span class="triangle"></span>
          </div>
          <div class="input-tips">请选择到期日期</div>
        </div>
      </div>
      <div class="user-info-item">
        <div class="item-title"><span>*</span> 发证机关名称</div>
        <div class="user-input">
          <div class="select-box" style="display: block;">
            <input type="text" placeholder="如:北京市公安局西城区分局" />
          </div>
          <div class="input-tips">请填写发证机关名称</div>
        </div>
      </div>
      <div class="user-info-item">
        <div class="item-title"><span>*</span> 婚姻状况</div>
        <div class="user-input">
          <div class="select-box">
            <select>
              <option>未婚</option>
              <option>已婚</option>
              <option>离婚</option>
              <option>其他</option>
            </select>
            <span class="triangle"></span>
          </div>
          <div class="input-tips">请选择婚姻状况</div>
        </div>
      </div>
      <div class="user-info-item">
        <div class="item-title"><span>*</span> 学历</div>
        <div class="user-input">
          <div class="select-box">
            <select>
              <option>博士及以上</option>
              <option>硕士</option>
              <option>大学本科</option>
              <option>大专和专科学校</option>
              <option>高中</option>
              <option>初中级以下</option>
            </select>
            <span class="triangle"></span>
          </div>
          <div class="input-tips">请选择学历</div>
        </div>
      </div>
      <div class="user-info-item">
        <div class="item-title"><span>*</span> 住宅性质</div>
        <div class="user-input">
          <div class="select-box">
            <select>
              <option>自有住房</option>
              <option>贷款住房</option>
              <option>租房</option>
              <option>其他</option>
            </select>
            <span class="triangle"></span>
          </div>
          <div class="input-tips">请选择住宅性质</div>
        </div>
      </div>
      <div class="user-info-item">
        <div class="item-title"><span>*</span> 住宅地址</div>
        <div class="user-input">
          <div class="select-box">
            <select>
              <option>湖南省长沙市</option>
              <option>湖北省武汉市</option>
            </select>
            <span class="triangle"></span>
          </div>
          <input type="text" placeholder="详细地址" style="padding-left: 0; margin-top: 5px;"/>
          <div class="input-tips">请选择住宅性质</div>
        </div>
      </div>
      <div class="user-info-item">
        <div class="item-title"><span>*</span> 住宅邮编</div>
        <div class="user-input">
          <div class="select-box">
            <select>
              <option>湖南省长沙市</option>
              <option>湖北省武汉市</option>
            </select>
            <span class="triangle"></span>
          </div>
          <input type="text" placeholder="详细地址" style="padding-left: 0; margin-top: 5px;"/>
          <div class="input-tips">请选择住宅性质</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    data: function() {
      return {

      }
    },
    methods: {

    }
  }
</script>

<style scoped lang="scss">
  .card-container{
    background-color: #eeeeee;
  }
  input::-webkit-input-placeholder{
    font-size: 14px;
    color: #999;
  }
  // 进度
  .progressBar{
    background-color: #fff;
    padding: 10px;
    border-bottom: 1px solid #cccccc;
    position: relative;
    .start{
      width: 20px;
      height: 20px;
      border-radius: 30px;
      background-color: #2790df;
      position: absolute;
      top: 10px;
      left: 10px;
    }
    .end{
      width: 20px;
      height: 20px;
      border-radius: 30px;
      background-color: #ffffff;
      border: 2px solid #bcc4cd;
      box-sizing: border-box;
      position: absolute;
      top: 10px;
      right: 10px;
    }
    .line-progressBar{
      width: 100%;
      height: 4px;
      background-color: #bcc4cd;
      margin-top: 8px;
      .line-item{
        width: 30%;
        height: 4px;
        background-color: #2790df;
        position: relative;
        &::after{
          content: '';
          display: block;
          width: 24px;
          height: 24px;
          border-radius: 30px;
          background-color: #fff;
          border: 6px solid #2790df;
          position: absolute;
          top: 50%;
          margin-top: -12px;
          right: 0;
        }
        .current-num{
          color: #2790df;
          position: absolute;
          top: 24px;
          right: -5px;
        }
      }
    }
    .progressBar-num{
      margin-top: 20px;
      display: flex;
      justify-content: space-between;
    }
    .tips{
      font-size: 14px;
      text-align: center;
      margin: 10px 0;
    }
    .center-btn{
      text-align: center;
    }
  }


  // 填写用户信息

  .user-info-box{
    background-color: #fff;
    .user-info{
      margin-top: 10px;
      padding: 15px 0;
      display: flex;
      align-items: center;
      justify-content: center;
      border-bottom: 1px solid #eeeeee;
      i{
        color: orange;
        font-size: 20px;
        margin-right: 5px;
      }
    }
    .user-info-item{
      display: flex;
      padding: 1rem;
      border-bottom: 1px solid #eeeeee;
      .item-title{
        width: 35%;
        color: #666;
        font-size: 0.875rem;
        span{
          color: red;
        }
      }
      .user-input{
        flex: 1;
        position: relative;
        .select-box{
          position: relative;
          display: inline-block;
          select{
            outline: none;
            border: none;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
          }
          .triangle{
            width: 0;
            height: 0;
            border-left: 4px solid transparent;
            border-right: 4px solid transparent;
            border-top: 6px solid #c6c6c6;
            position: absolute;
            top: 5px;
            right: -10px;
          }
        }
        input {
          border: none;
          outline: none;
          padding-left: 10px;
          display: block;
          width: 100%;
        }
        .code-img{
          width: 5rem;
          height: 1.875rem;
          border-radius: 5px;
          position: absolute;
          top: 0;
          right: 0;
        }
        .input-tips{
          margin-top: 8px;
          font-size: 0.8125rem;
          color: #f00;
        }
      }
    }
  }
  .dateInput{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 20px;
  }
</style>
